package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.NursingTaskCancelDto;
import com.zzyl.nursing.dto.NursingTaskDto;
import com.zzyl.nursing.dto.NursingTaskExecuteDto;
import com.zzyl.nursing.dto.NursingTaskUpdateTime;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;
/**
 * 护理任务Service接口
 *
 * @author zzyl
 * @date 2025-10-29
 */
public interface INursingTaskService extends IService<NursingTask> {

    /**
     * 生成月度护理任务
     * @param elder 老人信息
     */
    void generateMonthlyTask(Elder elder);
        /**
         * 查询护理任务
         *
         * @param id 护理任务主键
         * @return 护理任务
         */
        public NursingTaskVo selectNursingTaskById(Integer id);

        /**
         * 查询护理任务列表
         *
         * @param nursingTask 护理任务
         * @return 护理任务集合
         */
        public List<NursingTask> selectNursingTaskList(NursingTaskDto nursingTask);

        /**
         * 新增护理任务
         *
         * @param nursingTask 护理任务
         * @return 结果
         */
        public int insertNursingTask(NursingTask nursingTask);

        /**
         * 修改护理任务
         *
         * @param nursingTask 护理任务
         * @return 结果
         */
        public int updateNursingTask(NursingTask nursingTask);

        /**
         * 批量删除护理任务
         *
         * @param ids 需要删除的护理任务主键集合
         * @return 结果
         */
        public int deleteNursingTaskByIds(Long[] ids);

        /**
         * 取消护理任务信息
         *
         * @param taskCancelDto 护理任务id和取消原因
         * @return 结果
         */
        public void cancelNursingTaskById(NursingTaskCancelDto taskCancelDto);
        /**
        * 执行
        * @param dto
        */
        void executeTask(NursingTaskExecuteDto dto);

        void NursingTaskupdateTime(NursingTaskUpdateTime updateTime);
}
